/*
 * Powered By [lixin]
 * 代码脚手架工具生成 [AI-Code]
 */

package com.rzhkj.box.service.impl;

import com.baidu.fsg.uid.UidGenerator;
import com.rzhkj.box.dao.NotificationDAO;
import com.rzhkj.box.entity.Notification;
import com.rzhkj.box.service.NotificationSV;
import com.rzhkj.core.base.BaseMybatisDAO;
import com.rzhkj.core.base.BaseMybatisSVImpl;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Component
@Service
public class NotificationSVImpl extends BaseMybatisSVImpl<Notification, Long> implements NotificationSV {

    @Resource
    private NotificationDAO notificationDAO;

    @Resource
    private UidGenerator uidGenerator;

    @Override
    protected BaseMybatisDAO getBaseMybatisDAO() {
        return notificationDAO;
    }

    /**
     * 加载对象Notification 通过code
     *
     * @param code 编码
     * @return Notification
     */
    @Override
    public Notification loadByCode(java.lang.String code) {
        return notificationDAO.loadByCode(code);
    }

    /**
     * 删除对象Notification
     *
     * @param id id* @param code 编码
     * @return Notification
     */
    @Override
    public void delete(java.lang.Long id, java.lang.String code) {
        notificationDAO.delete(id, code);
    }

}
